﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ChangeInfo.ascx.cs" Inherits="BSPortal.Usercontrol.ChangeInfo" %>
<style>
    .registry_row {
        width:250px; 
        padding-left: 50px;
        line-height: 30px;
    }
</style>
<div align="center">    
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <table style="width:80%">
        <tr>
            <td colspan="2" align="center">
                <div class="title_login"> <b class="b_title">CHỈNH SỬA THÔNG TIN</b></div>
            </td>
        </tr>
        <tr>
            <td class="registry_row">
                Username</td>
            <td align="left">
                <asp:TextBox ID="txtUsername" ReadOnly="true" runat="server"></asp:TextBox>
                </td>
        </tr>
        <tr>
            <td class="registry_row">
                Họ tên</td>
            <td align="left">
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ErrorMessage="*" ControlToValidate="txtName"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="registry_row">
                Email</td>
            <td align="left">
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator id="RegularExpressionValidator1" 
                  runat="server" ControlToValidate="txtEmail" 
                  ErrorMessage="*" 
                  ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                </asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="registry_row">
                Số điện thoại</td>
            <td align="left">
                <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="txtPhone"></asp:RequiredFieldValidator>
                </td>
        </tr>
        <tr>
                <td class="registry_row">
                    Tỉnh thành</td>
                <td align="left">
                    <asp:DropDownList ID="ddlCity" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="ddlCity_SelectedIndexChanged" Width="155px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="registry_row">
                    Quận/Huyện</td>
                <td align="left">                
                    <asp:DropDownList ID="ddlDistrict" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="ddlDistrict_SelectedIndexChanged" Width="155px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="registry_row">
                    Phường/xã</td>
                <td align="left">
                    <asp:DropDownList ID="ddlWard" runat="server" Width="155px">
                    </asp:DropDownList>
                 </td>
            </tr>
        <tr>
            <td class="registry_row">
                Số nhà</td>
            <td align="left">
                <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                </td>
        </tr>
        <tr>
            <td class="registry_row">
                Password</td>
            <td align="left">
                <asp:TextBox ID="txtPassword" TextMode="Password" runat="server"></asp:TextBox>
                </td>
        </tr>
        <tr>
            <td class="registry_row">
                Nhập lại password</td>
            <td align="left">
                <asp:TextBox ID="txtRepassword" TextMode="Password" runat="server"></asp:TextBox>
                 <asp:CompareValidator id="CompareValidator1" 
                     runat="server" ErrorMessage="Password chưa chính xác." 
                     ControlToValidate="txtPassword" 
                     ControlToCompare="txtRepassword"></asp:CompareValidator>
                </td>
        </tr>
        <tr>
            <td  class="registry_row" colspan="2" align="center">
                <asp:Label ID="lblStatus" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td   class="registry_row" colspan="2" align="center">
                <asp:Button runat="server" Width="70px" Height="30px" Text="Cập nhật" ID="btnRegistry" 
                    onclick="btnRegistry_Click"/>
            </td>
        </tr>
    </table>
    </ContentTemplate>
</asp:UpdatePanel>
</div>